//
//  CTVUser.h
//  Channltv
//
//  Created by Bruno  Keymolen on 19/07/07.
//  Copyright 2007 channl.tv. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface CTVUser : NSObject {
@protected
		BOOL m_synchronized;
		BOOL m_confirmed;
		NSString* m_alias;
		NSString* m_uid;
		NSString* m_fullName;
		NSString* m_email;
		NSString* m_password;
		BOOL m_isLogon;
}


-(NSString*)fullName;
-(NSString*)uid;
-(NSString*)alias;
-(NSString*)email;
-(NSString*)password;
-(BOOL)confirmed;
-(BOOL)synchronized;
-(BOOL)isLogon;

-(int)loginToChannelTVByAlias:(NSString*)alias andPassword:(NSString*)password;
-(int)parseFromCache;

-(void)setEmail:(NSString*)email;
-(void)setFullName:(NSString*)fullName;
-(void)setID:(NSString*)uid;
-(void)setAlias:(NSString*)alias;
-(void)setPassword:(NSString*)password;
-(void)setSynchronized:(BOOL)synchronized;
-(void)setIsLogon:(BOOL)logon;
-(int)loadCurrentUserInfo;
-(int)logout;

@end
